import request from '@/utils/request'

// 查询客户收益列表
export function listCrmCompanyPurse(query) {
  return request({
    url: '/net/crmCompanyPurse/list',
    method: 'get',
    params: query
  })
}

// 查询客户收益详细
export function getCrmCompanyPurse(id) {
  return request({
    url: '/net/crmCompanyPurse/' + id,
    method: 'get'
  })
}

// 新增客户收益
export function addCrmCompanyPurse(data) {
  return request({
    url: '/net/crmCompanyPurse',
    method: 'post',
    data: data
  })
}

// 修改客户收益
export function updateCrmCompanyPurse(data) {
  return request({
    url: '/net/crmCompanyPurse',
    method: 'put',
    data: data
  })
}

// 删除客户收益
export function delCrmCompanyPurse(id) {
  return request({
    url: '/net/crmCompanyPurse/' + id,
    method: 'delete'
  })
}
